// 搜索模块相关的数据请求
import request from '../utils/request.js'
// import requset from '../utils/request.js'

// 定义请求获取展示数据的请求
export const getSearchSuggestions = (q) => {
  return request({
    method: 'GET',
    url: '/app/v1_0/suggestion',
    params: {
      q
    }
  })
}
// 获取搜索列表的请求模块
export const getSearchResults = (params) => {
  return request({
    method: 'GET',
    url: '/app/v1_0/search',
    params
  })
}
